//
//  SortView.h
//  dzm
//
//  Created by dzmmac on 15/4/10.
//  Copyright (c) 2015年 dzmmac. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SortSelectedDelegate <NSObject>

-(void)sortSelectedIndex:(NSInteger)index;

@end

@interface SortView : UIView <UITableViewDataSource,UITableViewDelegate>

@property (nonatomic , assign) id<SortSelectedDelegate> delegate;
@property (nonatomic , strong) UITableView *sortTableView;
@property (nonatomic , strong) NSArray *dataList;
@property (nonatomic , assign) NSInteger selectedIndex;
@property (nonatomic , strong) UIImageView *bgView;
@property (nonatomic , strong) UITapGestureRecognizer *tap;


@property (nonatomic , assign) NSInteger sortType;

//只有当sortType = 3
@property (nonatomic , strong) NSString *descString;

-(void)selectedItem:(NSInteger)index;

-(void)show;
@end
